import { request } from "@/utils/request";
//用户登录
export function userLogin(params) {
    return request({
        method: 'post',
        url: 'user/login',
        data: params,
        headers: {
            'token': window.localStorage.token,
        },
    })
}
//用户注册
export function userRegister(params) {
    return request({
        method: 'post',
        url: 'user/register',
        data: params,
        headers: {
            'token': window.localStorage.token,
        },
    })
}